package web.dmt.dao.proxy;

import web.dmt.dao.*;
import web.dmt.db.*;
import web.dmt.dao.impl.*;
public class DeleteProxy implements DeleteDAO{
	private Conn dbc = null ;
	private DeleteImpl dao = null ;
	public DeleteProxy(){
		try{
			this.dbc = new Conn() ;
		}catch(Exception e){
			e.printStackTrace();
		}
		this.dao = new DeleteImpl(dbc.getConnection());
	}
	public void delete(String chart, int id, int uid) throws Exception {
		try{
			this.dao.delete(chart, id, uid) ;
		}catch(Exception e){
			e.printStackTrace() ;
		}finally{
			this.dbc.close();
		}
	}
}
